const mongoose = require('mongoose')
const schema = new mongoose.Schema({
  categories: {
    type: mongoose.SchemaTypes.ObjectId,
    ref: 'Category'
  },
  title: {
    type: String
  },
  bgImg: {
    type: String
  },
  desc: {
    type: String
  },
  url: {
    type: String
  }
}, {
  timestamps: true
})

module.exports = mongoose.model('Video', schema)